#include "square_block.h"

square_block::square_block(int posy, int posx)
{
    //Initialize matrix (T-Position)
    for(int i=0; i<4; i++)
    {
        for(int j=0; j<4; j++)
        {
            if(((i==1) && ((j>=0)&&(j<=1))) || ((i==2) && ((j>=0)&&(j<=1))))
                m_pos_matrix[i][j] = true;
            else
                m_pos_matrix[i][j] = false;
        }
    }

    //Initialize state, position and color
    m_state = S_UP;
    m_position[0] = posy;
    m_position[1] = posx-2;
    m_color = C_PURPLE;
}

square_block::~square_block()
{
    //dtor
}
